package cn.tedu.egaddress1.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 将状态码放入到枚举类中，方便统一处理
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    //所有枚举类的实力都在最上面
    OPERATION_SUCCESS(2000, "操作成功"),
    OPERATION_FAILED(3000, "操作失败");
    private Integer status;
    private String message;
}
